package com.dmooo.yxmmerchant.view.model;

import android.content.Context;

import com.common.net.entity.SubjectPost;
import com.common.net.listener.HttpOnNextListener;
import com.common.net.subscribers.ProgressSubscriber;
import com.common.util.LogUtil;
import com.dmooo.yxmmerchant.http.HttpManager;
import com.dmooo.yxmmerchant.view.contract.MallGoodsContract;

import java.util.HashMap;
import java.util.Map;

public class MallGoodsModel implements MallGoodsContract.MallGoodsMdl {
    private Context context;
    public MallGoodsModel(Context context) {
        this.context=context;
    }

    @Override
    public void getMallGoods(Map<String, Object> map, HttpOnNextListener listener) {
    }

    @Override
    public void getGoodsDetail(String goods_id, HttpOnNextListener listener) {
        Map<String,Object> map=new HashMap<>();
        map.put("goods_id",goods_id);
        LogUtil.d("3werwerf",map.toString());
        SubjectPost post=new SubjectPost(new ProgressSubscriber(listener,context,false,true,".."),map);
        HttpManager.getInstance().getGoodsMsg(post);
    }
    @Override
    public void addShopCar(String token, String goods_id, Map<String, Object> map, HttpOnNextListener listener) {
    }

    @Override
    public void collectGoods(String token, String goods_id, HttpOnNextListener listener) {
    }

    @Override
    public void disCollectGoods(String token, String goods_id, HttpOnNextListener listener) {
    }

    @Override
    public void isCollectGoods(String token, String goods_id, HttpOnNextListener listener) {
    }
}
